package com.scut.fy.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.fy.admin.model.entity.SysRole;
import com.scut.fy.admin.model.entity.SysUser;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jy
 * @since 2021-09-04
 */
public interface ISysRoleService extends IService<SysRole> {

    /**
     * 必须要有userId或者userName才能查询用户权限
     * @param sysUser
     * @return
     */
    List<SysRole> getRolesByUser (SysUser sysUser);
}
